﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Site
{
    public partial class MasterPage : System.Web.UI.MasterPage
    {
        #region variable
        ServiceReference1.Service1Client svc = new ServiceReference1.Service1Client();
        #endregion

        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["userUID"] == null)
            {
                btnLogout.Visible = false;
            }
        }

        protected void btnLogout_Click(object sender, EventArgs e)
        {
            Session.Clear();
            Response.Redirect("Login.aspx");
        }
    }
}